﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Castle.MonoRail.Framework;

namespace Rodunu.Movies.Web.ViewComponents
{
    public class NetflixPlayWatchComponent : ViewComponent
    {
        public override void Render()
        {
            PropertyBag["Id"] = Convert.ToString(Context.ComponentParameters["Id"]);
            PropertyBag["MovieId"] = Convert.ToString(Context.ComponentParameters["MovieId"]);
            PropertyBag["IsAvail"] = Convert.ToBoolean(Context.ComponentParameters["IsAvail"]);
            PropertyBag["IsWatch"] = Convert.ToBoolean(Context.ComponentParameters["IsWatch"]);
            PropertyBag["UseTriggers"] = Convert.ToBoolean(Context.ComponentParameters["UseTriggers"]);

            base.Render();
        }
    }
}
